package com.day11;

public class TestString {
    public static void main(String[] args) {
        String str="helloworld";
        //5<=n<9
        //str=str.substring(5,10);
        str=str.substring(0,5);//取hello
        System.out.println(str);
    }
}
